<template>
  <div>
    <!-- 按钮标题 -->
    <div class="title">
      <span class="title_span2"><i class="el-icon-chat-dot-square"></i>&nbsp;&nbsp;&nbsp;{{operation}} </span><span class="title_span5">{{currentTime}}</span>
      <span class="btn" @click="isShow = !isShow">
        {{ isShow ? "收起" : "展开" }}
      </span>
    </div>
    <!-- 下拉内容 -->
    <div class="container" v-show="isShow">
         <span>尊敬的{{userName}}用户，你好！你于{{currentTime}}，在金科网贷金融平台{{operation}}。 感谢你对我们的关注和支持！</span>
    </div>
  </div>
</template>

<script>
export default {
    props: ['userName','currentTime','operation'],
  data() {
    return {
      isShow: false,
    };
  },
};
</script>

<style scoped>
.title_span2{
  width: 35%;
}
.title_span5{
  width: 35%;
  font-size: 90%;
  color: #999999;
}
.container p{
    font-size: 90%;
    color: rgb(128, 113, 113);
    width: 80%;
    margin-left: 10%;
    float: left;
} 
h3 {
  text-align: center;
}

.title {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid rgb(234, 228, 228);
  padding: 0 1em;
  height: 70px;
}

.title span:nth-child(1) {
  line-height: 2;
  margin: 0;
  font-size: 110%;
  color: rgb(85, 76, 76);
  margin-left: 20px;
}

.container {
  /* border: 1px solid #ccc; */
  padding: 0 1em;
}

.btn {
  /* 鼠标改成手的形状 */
  cursor: pointer;

}

img {
  width: 50%;
}
</style>